<head>
    <title>{$webTitle}</title>
    <meta name="content-type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=0">
    <meta http-equiv="Expires" content="0">
    <meta http-equiv="Access-Control-Allow-Origin" content="*">
    <meta itemprop="name" content="{$webTitle}"/>
    <meta itemprop="image" content="https://cdn.schub.top/logo.png" />
    <meta name="description" itemprop="description" content="{$description}" />
    <link rel="stylesheet" type="text/css" href="//cdn.schub.top/res/autojs/stylesheet.css?v=kjegqm0trfo" />
    <link rel="stylesheet" type="text/css" href="//cdn.schub.top/res/layui/css/layui.css?ver=202108231729" />
    <link rel="prefetch stylesheet" href="//cdn.schub.top/res/autojs/railscasts.css" />
    <style>
    body {
        background: #fff;
        background-attachment: fixed;
        cursor: url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/normal.cur), auto;
    }
    p img{
        width: 100%;
    }
    a:hover {
        cursor: url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/ayuda.cur), auto
    }
    a:active {
        cursor: url(https://cdn.jsdelivr.net/gh/moezx/cdn@3.1.9/img/Sakura/cursor/work.cur), alias
    }
    .layui-upload-file {
        display: none !important;
    }
    
    .list-group-horizontal .list-group-item {
		display: inline-block;
	}
	.list-group-horizontal .list-group-item {
		margin-bottom: 0;
		margin-left:-4px;
		margin-right: 0;
	}
	.list-group-horizontal .list-group-item:first-child {
		border-top-right-radius:0;
		border-bottom-left-radius:4px;
	}
	.list-group-horizontal .list-group-item:last-child {
		border-top-right-radius:4px;
		border-bottom-left-radius:0;
	}    
    </style>
	<script type="text/javascript" src="//cdn.schub.top/highlight/scripts/shCore.js"></script>
	<script type="text/javascript" src="//cdn.schub.top/highlight/scripts/shBrushCSharp.js"></script>
	<script type="text/javascript" src="//cdn.schub.top/highlight/scripts/shBrushJava.js"></script>
	<script type="text/javascript" src="//cdn.schub.top/highlight/scripts/shBrushPhp.js"></script>
	<script type="text/javascript" src="//cdn.schub.top/highlight/scripts/shBrushXml.js"></script>
	<script type="text/javascript" src="//cdn.schub.top/highlight/scripts/shBrushJScript.js"></script>
	<script type="text/javascript" src="//cdn.schub.top/highlight/scripts/shBrushCss.js"></script>
	<link type="text/css" rel="stylesheet" href="//cdn.schub.top/highlight/styles/shCoreDefault.css"/>
	<script type="text/javascript">SyntaxHighlighter.all();</script>
    <!--QQ分享组件-->
    <script src="//qzonestyle.gtimg.cn/qzone/qzact/common/share/share.js"></script>
    <!--Neditor-->
    <!-- include libraries(jQuery, bootstrap) -->
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" rel="stylesheet">
    <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js"></script>
    <!-- include summernote css/js -->
    <link href="https://cdn.schub.top/summernote/summernote.min.css" rel="stylesheet">
    <script src="https://cdn.schub.top/summernote/summernote.min.js"></script>
    <script src="https://cdn.schub.top/summernote/lang/summernote-zh-CN.js"></script>
    <script type="text/javascript">
        function loadEditor(id){
            var editor=$("#"+id);
            editor.summernote({
                lang:'zh-CN', 
                placeholder: '请在此输入内容...(移动端推荐全屏模式进行编辑)',
                minHeight: 300,
                callbacks : {
                    onImageUpload : function(files) { 
                        var form=new FormData();
                        form.append('file',files[0])
                        $.ajax({
                            type:"post",
                            url:"/com/imgupload", //上传服务器地址
                            dataType:'json',
                            data:form,
                            processData : false,
                            contentType : false,
                            cache : false,
                            success:function(data){
                              editor.summernote('editor.insertImage',data.url);
                            }
                        })
                    }
                }                
            });
            editor.getContent=function(){
                return editor.summernote("code");
            };
            editor.setContent=function(content){
                return editor.summernote("code",content);
            }
            return editor;
        }
        function BASE64() {
        
            // private property
            _keyStr = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
        
            // public method for encoding
            this.encode = function (input) {
                var output = "";
                var chr1, chr2, chr3, enc1, enc2, enc3, enc4;
                var i = 0;
                input = _utf8_encode(input);
                while (i < input.length) {
                    chr1 = input.charCodeAt(i++);
                    chr2 = input.charCodeAt(i++);
                    chr3 = input.charCodeAt(i++);
                    enc1 = chr1 >> 2;
                    enc2 = ((chr1 & 3) << 4) | (chr2 >> 4);
                    enc3 = ((chr2 & 15) << 2) | (chr3 >> 6);
                    enc4 = chr3 & 63;
                    if (isNaN(chr2)) {
                        enc3 = enc4 = 64;
                    } else if (isNaN(chr3)) {
                        enc4 = 64;
                    }
                    output = output +
                        _keyStr.charAt(enc1) + _keyStr.charAt(enc2) +
                        _keyStr.charAt(enc3) + _keyStr.charAt(enc4);
                }
                return output;
            }
        
            // public method for decoding
            this.decode = function (input) {
                var output = "";
                var chr1, chr2, chr3;
                var enc1, enc2, enc3, enc4;
                var i = 0;
                input = input.replace(/[^A-Za-z0-9\+\/\=]/g, "");
                while (i < input.length) {
                    enc1 = _keyStr.indexOf(input.charAt(i++));
                    enc2 = _keyStr.indexOf(input.charAt(i++));
                    enc3 = _keyStr.indexOf(input.charAt(i++));
                    enc4 = _keyStr.indexOf(input.charAt(i++));
                    chr1 = (enc1 << 2) | (enc2 >> 4);
                    chr2 = ((enc2 & 15) << 4) | (enc3 >> 2);
                    chr3 = ((enc3 & 3) << 6) | enc4;
                    output = output + String.fromCharCode(chr1);
                    if (enc3 != 64) {
                        output = output + String.fromCharCode(chr2);
                    }
                    if (enc4 != 64) {
                        output = output + String.fromCharCode(chr3);
                    }
                }
                output = _utf8_decode(output);
                return output;
            }
        
            // private method for UTF-8 encoding
            _utf8_encode = function (string) {
                string = string.replace(/\r\n/g, "\n");
                var utftext = "";
                for (var n = 0; n < string.length; n++) {
                    var c = string.charCodeAt(n);
                    if (c < 128) {
                        utftext += String.fromCharCode(c);
                    } else if ((c > 127) && (c < 2048)) {
                        utftext += String.fromCharCode((c >> 6) | 192);
                        utftext += String.fromCharCode((c & 63) | 128);
                    } else {
                        utftext += String.fromCharCode((c >> 12) | 224);
                        utftext += String.fromCharCode(((c >> 6) & 63) | 128);
                        utftext += String.fromCharCode((c & 63) | 128);
                    }
        
                }
                return utftext;
            }
        
            // private method for UTF-8 decoding
            _utf8_decode = function (utftext) {
                var string = "";
                var i = 0;
                var c = c1 = c2 = 0;
                while (i < utftext.length) {
                    c = utftext.charCodeAt(i);
                    if (c < 128) {
                        string += String.fromCharCode(c);
                        i++;
                    } else if ((c > 191) && (c < 224)) {
                        c2 = utftext.charCodeAt(i + 1);
                        string += String.fromCharCode(((c & 31) << 6) | (c2 & 63));
                        i += 2;
                    } else {
                        c2 = utftext.charCodeAt(i + 1);
                        c3 = utftext.charCodeAt(i + 2);
                        string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63));
                        i += 3;
                    }
                }
                return string;
            }
        }
        window.Base64=new BASE64();
    </script>
    <!--加载layui组件-->
    <script src="//cdn.schub.top/res/layui/layui.js" charset="utf-8"></script>
    <!--剪切板组件-->
    <!--<script src="https://cdn.bootcdn.net/ajax/libs/clipboard.js/2.0.6/clipboard.min.js"></script>-->
    <script>

        function Ajax(url, params=null,callback=null,Isjson=true) {
        if(params!=null){
            $.ajax({
                url: url,
                type: "POST",
                dataType: "text",
                data: params,
                success: function(res) {
                    if(Isjson)res=JSON.parse(res);
                    if (callback != null) callback(res);
                },
                error: function (jqXHR, textStatus, errorThrown) {
                    layer.msg("错误状态码"+textStatus);
                }
            });
        }else{
            $.ajax({
                url: url,
                type: "GET",
                dataType: "text",
                success: function(res) {
                    if(Isjson)res=JSON.parse(res);
                    if (callback != null) callback(res);
                },
                error: function (jqXHR, textStatus, errorThrown) {
                    layer.msg("错误状态码"+textStatus);
                }
            });
        }
    }
    </script>
</head>
<div class="alert alert-danger">社区UI改版中，期间部分功能无法使用，敬请谅解。</div>
<div id="header-menu">
    <div class="material-load-bar" id="material-load-bar" style="height: 0px;">
        <div class="material-bar"></div>
        <div class="material-bar"></div>
        <div class="material-bar"></div>
    </div>
    <header id="header" component="navbar" class="">
        <ul class="header-inner">
            <li id="menu-trigger" data-trigger="#sidebar" class="menu-header">
                <div class="line-wrap">
                    <div class="line top"></div>
                    <div class="line center"></div>
                    <div class="line bottom"></div>
                </div>
            </li>
            <li class="logo menu-in-header">
                <a class="title" href="/com">
                    {$logosvg}{$SiteName}
                </a>

            </li>


            <li class="hidden-xs">
                <ul class="header-menu" id="main-nav">

                    <li class="">
                        <a class="navigation-link" href="/com/cate" title="版块">

                            <i class="fa fa-fw fa-list"></i>

                        </a>
                    </li>
                    <li class="">
                        <a class="navigation-link" href="/com/mods/viewlist" title="Mods">
                            <svg width="18" height="18" style="vertical-align: middle;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
                                <path fill="currentColor"
                                    d="M171.73,232.813A5.381,5.381,0,0,0,176.7,229.5,48.081,48.081,0,0,1,191.6,204.244c1.243-.828,1.657-2.484,1.657-4.141a4.22,4.22,0,0,0-2.071-3.312L74.429,128.473,148.958,85a9.941,9.941,0,0,0,4.968-8.281,9.108,9.108,0,0,0-4.968-8.281L126.6,55.6a9.748,9.748,0,0,0-9.523,0l-100.2,57.966a9.943,9.943,0,0,0-4.969,8.281V236.954a9.109,9.109,0,0,0,4.969,8.281L39.235,258.07a8.829,8.829,0,0,0,4.968,1.242,9.4,9.4,0,0,0,6.625-2.484,10.8,10.8,0,0,0,2.9-7.039V164.5L169.66,232.4A4.5,4.5,0,0,0,171.73,232.813ZM323.272,377.73a12.478,12.478,0,0,0-4.969,1.242l-74.528,43.062V287.882c0-2.9-2.9-5.8-6.211-4.555a53.036,53.036,0,0,1-28.984.414,4.86,4.86,0,0,0-6.21,4.555V421.619l-74.529-43.061a8.83,8.83,0,0,0-4.969-1.242,9.631,9.631,0,0,0-9.523,9.523v26.085a9.107,9.107,0,0,0,4.969,8.281l100.2,57.553A8.829,8.829,0,0,0,223.486,480a11.027,11.027,0,0,0,4.969-1.242l100.2-57.553a9.941,9.941,0,0,0,4.968-8.281V386.839C332.8,382.285,328.24,377.73,323.272,377.73ZM286.007,78a23,23,0,1,0-23-23A23,23,0,0,0,286.007,78Zm63.627-10.086a23,23,0,1,0,23,23A23,23,0,0,0,349.634,67.914ZM412.816,151.6a23,23,0,1,0-23-23A23,23,0,0,0,412.816,151.6Zm-63.182-9.2a23,23,0,1,0,23,23A23,23,0,0,0,349.634,142.4Zm-63.627,83.244a23,23,0,1,0-23-23A23,23,0,0,0,286.007,225.648Zm-62.074,36.358a23,23,0,1,0-23-23A23,23,0,0,0,223.933,262.006Zm188.883-82.358a23,23,0,1,0,23,23A23,23,0,0,0,412.816,179.648Zm0,72.272a23,23,0,1,0,23,23A23,23,0,0,0,412.816,251.92Z">
                                </path>
                            </svg>
                            Mods百科
                        </a>
                    </li>
                    {::iflogin}
                    <li class="">
                        <a class="navigation-link" href="javascript:;" onclick="logout();" title="退出">
                            <svg style="vertical-align: middle;" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
                                    <path fill="currentColor"
                                        d="M497 273L329 441c-15 15-41 4.5-41-17v-96H152c-13.3 0-24-10.7-24-24v-96c0-13.3 10.7-24 24-24h136V88c0-21.4 25.9-32 41-17l168 168c9.3 9.4 9.3 24.6 0 34zM192 436v-40c0-6.6-5.4-12-12-12H96c-17.7 0-32-14.3-32-32V160c0-17.7 14.3-32 32-32h84c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12H96c-53 0-96 43-96 96v192c0 53 43 96 96 96h84c6.6 0 12-5.4 12-12z">
                                    </path>
                                </svg>
                        </a>
                    </li>
                    {/iflogin}
                </ul>
            </li>
            <li class="pull-right">
                <ul class="top-menu">
                    <li class="nav navbar-nav pagination-block visible-lg visible-md">
                        <div class="dropdown">
                            <i class="fa fa-angle-double-up pointer fa-fw pagetop"></i>
                            <i class="fa fa-angle-up pointer fa-fw pageup"></i>

                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <span class="pagination-text"></span>
                            </a>

                            <i class="fa fa-angle-down pointer fa-fw pagedown"></i>
                            <i class="fa fa-angle-double-down pointer fa-fw pagebottom"></i>

                            <div class="progress-container">
                                <div class="progress-bar"></div>
                            </div>
                        </div>
                    </li>
                    <li class="visible-xs">
                        {::ifnologin}<a href="/com/login" id="headicon"><span>登录</span></a>{/ifnologin}
                        {::iflogin}{$headicon}{/iflogin}
                    </li>
                    <li class="hidden-xs">
                        {::ifnologin}<a href="/com/login" id="headicon"><span>登录</span></a>{/ifnologin}
                        {::iflogin}{$headicon}{/iflogin}
                    </li>

                </ul>
            </li>
        </ul>

    </header>
</div>
<section id="main">
    <aside id="sidebar">
        <div class="sidebar-inner">
            <div class="si-inner">
                <ul class="main-menu">
                    <li id="toggle-width" class="hidden-xs">
                        <div class="toggle-switch">
                            <input id="tw-switch" type="checkbox" hidden="hidden">
                            <label for="tw-switch" class="ts-helper"></label>
                        </div>
                    </li>
                    {::ifnologin}
                    <li class="visible-xs">
                        <a href="{$WEBPATH}/login">
                            <i class="fa fa-sign-in fa-fw"></i> 登录
                        </a>
                    </li>
                    {/ifnologin}
                    {::iflogin}
                    <li class="">
                        <a href="{$WEBPATH}/user/index" title="个人中心">
                            <svg width="18" height="18" style="vertical-align: middle;" xmlns="http://www.w3.org/2000/svg"
                                    viewBox="0 0 496 512">
                                    <path fill="currentColor"
                                        d="M248 8C111 8 0 119 0 256s111 248 248 248 248-111 248-248S385 8 248 8zm0 96c48.6 0 88 39.4 88 88s-39.4 88-88 88-88-39.4-88-88 39.4-88 88-88zm0 344c-58.7 0-111.3-26.6-146.5-68.2 18.8-35.4 55.6-59.8 98.5-59.8 2.4 0 4.8.4 7.1 1.1 13 4.2 26.6 6.9 40.9 6.9 14.3 0 28-2.7 40.9-6.9 2.3-.7 4.7-1.1 7.1-1.1 42.9 0 79.7 24.4 98.5 59.8C359.3 421.4 306.7 448 248 448z">
                                    </path>
                                </svg>
                            个人中心

                        </a>
                    </li>
                    {/iflogin}
                    <li class="">
                        <a href="{$WEBPATH}/cate" title="版块">

                            <i class="fa fa-fw fa-list"></i>


                            版块

                        </a>
                    </li>

                    <li class="">
                        <a href="{$WEBPATH}/mods/viewlist" title="Mods">
                            <svg width="18" height="18" style="vertical-align: middle;" role="img"
                                xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">
                                <path fill="currentColor"
                                    d="M171.73,232.813A5.381,5.381,0,0,0,176.7,229.5,48.081,48.081,0,0,1,191.6,204.244c1.243-.828,1.657-2.484,1.657-4.141a4.22,4.22,0,0,0-2.071-3.312L74.429,128.473,148.958,85a9.941,9.941,0,0,0,4.968-8.281,9.108,9.108,0,0,0-4.968-8.281L126.6,55.6a9.748,9.748,0,0,0-9.523,0l-100.2,57.966a9.943,9.943,0,0,0-4.969,8.281V236.954a9.109,9.109,0,0,0,4.969,8.281L39.235,258.07a8.829,8.829,0,0,0,4.968,1.242,9.4,9.4,0,0,0,6.625-2.484,10.8,10.8,0,0,0,2.9-7.039V164.5L169.66,232.4A4.5,4.5,0,0,0,171.73,232.813ZM323.272,377.73a12.478,12.478,0,0,0-4.969,1.242l-74.528,43.062V287.882c0-2.9-2.9-5.8-6.211-4.555a53.036,53.036,0,0,1-28.984.414,4.86,4.86,0,0,0-6.21,4.555V421.619l-74.529-43.061a8.83,8.83,0,0,0-4.969-1.242,9.631,9.631,0,0,0-9.523,9.523v26.085a9.107,9.107,0,0,0,4.969,8.281l100.2,57.553A8.829,8.829,0,0,0,223.486,480a11.027,11.027,0,0,0,4.969-1.242l100.2-57.553a9.941,9.941,0,0,0,4.968-8.281V386.839C332.8,382.285,328.24,377.73,323.272,377.73ZM286.007,78a23,23,0,1,0-23-23A23,23,0,0,0,286.007,78Zm63.627-10.086a23,23,0,1,0,23,23A23,23,0,0,0,349.634,67.914ZM412.816,151.6a23,23,0,1,0-23-23A23,23,0,0,0,412.816,151.6Zm-63.182-9.2a23,23,0,1,0,23,23A23,23,0,0,0,349.634,142.4Zm-63.627,83.244a23,23,0,1,0-23-23A23,23,0,0,0,286.007,225.648Zm-62.074,36.358a23,23,0,1,0-23-23A23,23,0,0,0,223.933,262.006Zm188.883-82.358a23,23,0,1,0,23,23A23,23,0,0,0,412.816,179.648Zm0,72.272a23,23,0,1,0,23,23A23,23,0,0,0,412.816,251.92Z">
                                </path>
                            </svg>
                            Mods百科
                        </a>
                    </li>

                    {::iflogin}
                    <li class="">
                        <a href="javascript:;" onclick="logout();" title="登出">
                            <i class="fa fa-fw fa-suitcase"></i>
                            登出
                        </a>
                    </li>
                    {/iflogin}
                </ul>
            </div>
        </div>
    </aside>
</section>